
#if !defined(__CRC16_H__)
#define __CRC16_H__

#ifdef __cplusplus
extern "C" {
#endif

	#define ISO14443_TYPEA	1

	#define ISO14443_TYPEB	2

	#define CCITT_CRC16		3



	unsigned short UpdateCrc(unsigned char ch, unsigned short *lpwCrc);

	unsigned short ComputeCrc(int CRCType, unsigned char *Data, int Length);


	/**
	 *      crc_ccitt - recompute the CRC for the data buffer
	 * 		@type: type of the CRC initialize value
	 *      @crc: previous CRC value
	 *      @buffer: data pointer
	 *      @len: number of bytes in the buffer
	 */
	unsigned short crc16_ISO14443(int type,unsigned char *buffer, long len);


#ifdef __cplusplus
}
#endif

#endif